Frictionless Modified Atwood's Machine